import { request } from "@/axios/request/http.js";
// post请求第二个参数是否为JSON形式 true表示json 没有参数默认为formData
let userService = "user-service";
let projectService = "project-service";
export const api = {
  add(){
    return request.get(`http://jingdezheng.club:9090/clairaudience/clairaudience/wangyingsecurity/add`);
  },
  login(data) {
    return request.post(`/${userService}/login`, data);
  },
  getTable(data) {
    // return request.get(`/${projectService}/statistical` ,data);
    return request.get(`/${projectService}/statisticals`, data);
  },
  //获取项目
  getProject() {
    return request.get(`${projectService}/project/list2?status=1`);
  },
  //获取项目下的医院
  getProjectHospital(id) {
    return request.get(
      `${projectService}/project/apply/researchList?project.id=${id}&applyStatus=1`
    );
  }
};
